import request from '@/utils/request'

// 获取
export function getSpaces(data) {
    return request({
        url: '/api/System/Space',
        method: 'get',
        params: data
      })
}

// 添加
export function addSpace(data) {
    return request({
        url: '/api/System/Space',
        method: 'post',
        params: data
    })
}

// 修改
export function updateSpace(data) {
    return request({
        url: '/api/System/Space',
        method: 'put',
        params: data
    })
}

// 删除
export function deleteSpace(data) {
    return request({
        url: '/api/System/Space',
        method: 'delete',
        params: data
    })
}